//
//  NSObject.swift
//  
//
//  Created by tangbl93 on 2021/2/5.
//

import Foundation

public extension NSObject {
    
    /// class name
    class var yx_className: String {
        return NSStringFromClass(self).components(separatedBy: ".").last ?? ""
    }
    
    /// class identifier
    class var yx_identifier: String {
        return String(format: "%@_identifier", self.yx_className)
    }
    
    /// class reuseIdentifier
    class var yx_reuseIdentifier: String {
        return String(describing: self)
    }
}
